-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorize by GitHub org and or team membership #205
Conversation
nice stuff @eikehartmann thanks for the contribution. Both @aaronpk and myself are very keen to get this in. Could you make just a couple adjustments...
And thanks for adding such thorough tests to VP |
…ub team whitelist
… value - i.e. only "<orgId>" and not fully qualified team "<orgId>/<teamSlug>" is given in config's teamWhitelist
6ba3136
to
1244cbd
Compare
Hi @bnfinet, thanks for the review and input. I moved the vendor-specific stuff to their own packages and tried to generalise on the function call. GitHub enterprise sample config has also been updated. Will still improve logging and error handling today and remove the WIP label once done. |
much appreciated @eikehartmann I am engaged to another project at the moment and won't be able to give this my attention for a few more days. I am hopeful of this week but it may slip to next week. Thanks for the code and your patience. |
@eikehartmann thanks again for the fine work! |
log.Debugf("removing port from %s to test domain %s", s, split[0]) | ||
s = split[0] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Allows configuration for GitHub to set whitelist on teams and or organizations when configured like this:
As mentioned in #150 this requires additional GitHub API calls to check the membership status.
Also includes the fix for checks of an email against domains: #199.